﻿using Games.Basic;
using Games.Common;
using Xamarin.Forms;

namespace Games.Eight
{
    class GameInfo : BaseViewModel, IGameInfo
    {
        public string Name => "八数码";
        public string Desc => "八数码是一款自我挑战的休闲益智游戏，又被称作“数字华容道”。" +
            "\r\n要求用尽量少的步数，尽量短的时间，将棋盘上的数字方块，按照从左到右、从上到下的顺序重新排列整齐。" +
            "\r\n\r\n通过屏幕轻扫动作移动数字到空格位置，只能向上下左右四个方向移动。" +
            "\r\n双击游戏区域撤销一步。";
        public string Version => "1.0";
        public string ID => "34C1A6C0-0269-4876-AD97-9F7C07DA86CD";
        public string BuildDate => "20200701";
        public ContentPage NewPage() => PageHolder.Get(() => new GamePage(this));

        int level = 0;
        public int Level
        {
            get { return level; }
            set { SetProperty(ref level, value); }
        }

        int stepCount = 0;
        public int StepCount
        {
            get { return stepCount; }
            set { SetProperty(ref stepCount, value); }
        }
    }
}
